import {
    _decorator, Component, Node, SpriteFrame,
    Sprite
} from 'cc';

const {ccclass, property} = _decorator;

@ccclass('Stat')
export class Stat extends Component {
    start() {

    }

    update(deltaTime: number) {

    }

    public init(sprite: SpriteFrame): Stat {
        this.getComponent(Sprite).spriteFrame = sprite;
        return this;
    }


}


